function envSceneOnJHPs() {
	var xmlDoc;
	var xmlURL = "/cen/xml/environment.xml";
	new Ajax.Request(xmlURL, {
		method: "get",
		asynchronous: false,
		onSuccess: function(resp, jsonObj) {
			xmlDoc = resp.responseXML;
			
			document.write('<div class="feedburnerFeedBlock"><ul>');	
			var x=xmlDoc.getElementsByTagName("item");
			var date = new Array();
			var temp, day, month, year, itemDesc;
			for (i=0;i<6;i++)
			{ 
				document.write('<li><span class="headline"><a href="');
				document.write(x[i].getElementsByTagName("guid")[0].childNodes[0].nodeValue);
				document.write('">');
				document.write(x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue);
				document.write("</a></span>");
				
				document.write('<p class="date">');
				temp=x[i].getElementsByTagName("pubDate")[0].childNodes[0].nodeValue;
				date=temp.split(' ')
				day=date[1];
				month=date[2];
				year=date[3];
					if (month=="Jan") { month="January"; }
					else if (month=="Feb") { month="February"; }
					else if (month=="Mar") { month="March"; }
					else if (month=="Apr") { month="April"; }
					else if (month=="May") { month="May"; }
					else if (month=="Jun") { month="June"; }
					else if (month=="Jul") { month="July"; }
					else if (month=="Aug") { month="August"; }
					else if (month=="Sep") { month="September"; }
					else if (month=="Oct") { month="October"; }
					else if (month=="Nov") { month="November"; }
					else if (month=="Dec") { month="December"; }
					else { month=month; }
				document.write(month+' '+day+', '+year);
	
				document.write("</p><div>");

				itemDesc = x[i].getElementsByTagName("description")[0].childNodes[0].nodeValue;
				itemDesc = itemDesc.gsub(/<img.*?\/>/,'');
				itemDesc = itemDesc.gsub(/\[DOI.*?\]/,'');

				document.write(itemDesc);
				document.write("</div></li>");
			}
			document.write("</ul></div>");
			
		}
	});
}

function envSceneOnEstNewsPage() {
	var xmlDoc;
	var xmlURL = "/cen/xml/environment.xml";
	new Ajax.Request(xmlURL, {
		method: "get",
		asynchronous: false,
		onSuccess: function(resp, jsonObj) {
			xmlDoc = resp.responseXML;
			
			document.write('<div id="mostRecentItems">');	
			var x=xmlDoc.getElementsByTagName("item");
			var date = new Array();
			var temp, day, month, year, itemDesc, image, doi;
			for (i=0;i<8;i++)
			{
				// Get <description>, parse it for image tag, and clean up the description for display
				itemDesc = x[i].getElementsByTagName("description")[0].childNodes[0].nodeValue;
	
				if (itemDesc.include('img')) {
					image = itemDesc.sub(/.*?(<img.*?>)[\s\S]*/, '<div class="image">#{1}</div>');
				}
				else { image = ""; }
	
				itemDesc = itemDesc.sub(/<img.*?>/ , '');
				itemDesc = itemDesc.sub(/\[(DOI.*?)\]/ , '<div class="doiString">#{1}</div>');
	
				// Start news item and display image (if available)
				document.write('<div class="newsItem">');
				document.write(image);
	
				// Date Display
				document.write('<p class="date">');
				temp=x[i].getElementsByTagName("pubDate")[0].childNodes[0].nodeValue;
				date=temp.split(' ')
				day=date[1];
				month=date[2];
				year=date[3];
					if (month=="Jan") { month="January"; }
					else if (month=="Feb") { month="February"; }
					else if (month=="Mar") { month="March"; }
					else if (month=="Apr") { month="April"; }
					else if (month=="May") { month="May"; }
					else if (month=="Jun") { month="June"; }
					else if (month=="Jul") { month="July"; }
					else if (month=="Aug") { month="August"; }
					else if (month=="Sep") { month="September"; }
					else if (month=="Oct") { month="October"; }
					else if (month=="Nov") { month="November"; }
					else if (month=="Dec") { month="December"; }
					else { month=month; }
				document.write(month+' '+day+', '+year);
	
				// Headline Display
				document.write('<div class="headline"><a href="')
				document.write(x[i].getElementsByTagName("guid")[0].childNodes[0].nodeValue);
				document.write('">');
				document.write(x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue);
				document.write("</a></div>");
				
				document.write("</p><div>");
				document.write(itemDesc);
				document.write("</div></div>");
			}
			document.write("</div>");
			
		}
	});
}